<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="../dist-browser/hanzi-expression-calculate.global.js"></script>
    <script>
        let 式子 = "一加一";
        let result = 汉字式子运算(式子);
        document.write(`<p>“${式子}”的结果为：${result}</p>`);

        式子 = "二除以三";
        result = 汉字式子运算(式子);
        document.write(`<p>“${式子}”的结果为：${result}</p>`);

        式子 = "二除三";
        result = 汉字式子运算(式子);
        document.write(`<p>“${式子}”的结果为：${result}</p>`);

        式子 = "六的平方的三倍的立方的两倍除以二";
        result = 汉字式子运算(式子);
        document.write(`<p>“${式子}”的结果为：${result}</p>`);

    </script>
</body>
</html>
